package d.max.rwp.ui;

import android.view.View;
import android.view.View.OnClickListener;
import d.max.rwp.action.Action;

/**
 * author: Maxim Dybarskiy
 * date:   Sep 3, 2011
 * time:   10:40:16 PM
 */
public class NavigateDashboardListener implements OnClickListener {

    Action action;

    public NavigateDashboardListener(Action action) {
        this.action = action;
    }
    
    @Override
    public void onClick(View view) {
        if (action != null) {
            action.perform();
        }
    }
}
